<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS 垂直按钮组</title>
</head>
<body>
<h1>垂直按钮组</h1>

<div class="btn-group">
    <button>Apple</button>
    <button>Samsung</button>
    <button>Sony</button>
</div>
<style>
    .btn-group button{
        display: block;
        background-color: green;
        color: white;
        border:1px solid black;
        text-align: center;
        width: 300px;
        padding: 20px;
    }
    .btn-group button:hover{
        background-color: greenyellow;
    }
</style>
</body>
</html>
